package wangchao.validate;

/**
 * Created by ashin on 2018/11/1.
 */
public enum ValidateType {

    NOT_VALIDATE("不需要验证"),
    NOT_NULL("字段不能为空"),
    NULL("字段必须为空"),
    MAX_LENGTH("最大长度有误"),
    MIN_LENGTH("最小长度有误"),
    REGEX("输入的值格式有误");

    private String instructions;

    ValidateType(String instructions) {
        this.instructions = instructions;
    }

    @Override
    public String toString() {
        return String.valueOf(this.instructions);
    }

}
